package com.hydl.power.service;

import com.github.pagehelper.PageInfo;
import com.hydl.power.netty.model.SmartIotpower;
import com.hydl.power.pojo.PowerConsume;
import com.hydl.power.pojo.PowerNewData;
import com.hydl.power.pojo.Powerdata;
import com.hydl.power.pojo.TemperatureData;
import com.hydl.power.utils.Resp;

import java.text.ParseException;
import java.util.List;

/**
 * 电表数据
 */
public interface PowerDataService {

    Resp AddPowerData(SmartIotpower iot);

    Resp<Powerdata> GetPowerData(String deviceId);
    Resp warn()  ;

    List<Powerdata> queryPowerData(String deviceId, String time, String dataType ,String minute);

    PageInfo<Powerdata> queryProwerAllDevices(Integer pageNum,Integer pageSize,String projectId, String time);
    List<Powerdata> queryPowerAllExport(String projectId, String time);

    List<PowerNewData> getPowerNewData(String deviceId,String type);
    /*查询昨天得数据*/
    List<Powerdata> queryYesterday(String deviceId,String time,String dataType);

    void insertPowers();

    List<Powerdata> getPowerData(String serialNumber, String time);

    List<List<PowerConsume>> getPowerDataByMonth(String startTime, String endTime,String token) throws ParseException;
}
